Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalised surface fitting #122

Merged
merged 28 commits into from
Sep 1, 2022

Conversation

tawhai
Copy link
Contributor

@tawhai tawhai commented May 13, 2021

Addresses issue #121. Option to 'import' nodes (useful when editing nodes in cmgui during fitting) and to distribute nodes evenly along an arc length in between fit iterations.

Merryn Tawhai and others added 18 commits May 12, 2021 11:10
… from the global parameters. 'calc_scale_factors_2d' rewritten to be more specific to the surface meshes used in the code, along with specific functions for 'hermite' and 'linear' interpolation
…just the location of specified nodes so that they remain on the fitted surface but are spread evenly between user-specified nodes
…t this is done automatically. we always need an ordered tree
Copy link

@haribalankumar haribalankumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes

  1. Remove _WIN32 in bindings
  2. Remove changes to gas_exchange in bindings , although minor
  3. Remove changes to gas_exchange.f90 in bindings
  4. Remove changes to gas_exchange.h in bindings
  5. Remove changes to argument list in add_mesh in geometry.c
  6. Remove refine_1d_elements, renumber_tree_in_order from geometry.c
  7. remove default_lung_mechanics from arrays.f90
  8. Remove changes to capillary flow.f90
  9. Remove DEC$ ATTRIBUTES from export_lagrange
  10. Remove all changes in lib/gas_exchange.f90 this should be a different PR
  11. Remove all changes in lib/ventilation.f90 this should be a different PR

@haribalankumar haribalankumar removed their assignment Aug 17, 2022
@tawhai
Copy link
Contributor Author

tawhai commented Aug 19, 2022

Have made all requested changes and have updated the accompanying test example (pushed to get_surf_fit_issue44)

@haribalankumar
Copy link

Requesting minor changes:
[src/lib/arrays.f90]
Do these belong to this PR: mesh_from_depvar, depvar_at_node, depvar_at_elem, SparseCol, SparseRow, update_resistance_entries, SparseVal, RHS, prq_solution, solver_solution, FIX

[src/bindings/c/ventilation.f90]
Does this change belong to the PR: evaluate_vent()

src/lib/geometry.f90
Does this change belong to the PR: get_parent_branch

Otherwise the build is fine. When running associated example, I get segmentation error right at ITERATION 1.

…in line_versn_2d not global nodes. seg fault found as part of code review by HK. error picked up using pedantic build
@haribalankumar
Copy link

Happy with changes in this PR. Few things to note for future version releases of this code:

  1. Provision for inclusion of fissure
  2. Right lung mesh template
  3. Example script that uses export lagrange
  4. More options for ipmap
  5. Ability to handle refine datasets and dynamic memory allocation for larger exdata files

Can be merged now.

@tawhai tawhai merged commit f69e4ff into LungNoodle:develop Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants